Skip to content

Conversation

@heathhenley
Copy link
Collaborator

What do you think about something like this handle the first part of #8 ?

I originally tried to use external utils to get the type ('file --mime` on unix), and that worked nicely but there doesn't seem to be a nice way to do it on windows so I switched to just looking for the bat warning.

I don't know what the ideal way to handle where the regex pattern / warning text, eg whether it's ocaml'y to stick them at the top level of if they should be somewhere else (in the function? factored into some config somewhere, etc).

New to ocaml and was looking at this project for as an example of how to make a tui - thanks for sharing it!

@heathhenley
Copy link
Collaborator Author

here's what it looks like:
image

@chshersh
Copy link
Owner

Hey @heathhenley,

Apologies, overlooked your contribution earlier! 🙏🏻

I'll look into the patch but thanks a ton for looking into this problem!

P.S. Thanks for the kind words about the project 💛

@heathhenley
Copy link
Collaborator Author

I don't have formatting / linting set up locally, probably should for the future anyway so I'll look at getting that set up and fixing the format so that will pass CI. I'm not sure why the opam install should be failing on ci? I only added str in lib/fs/dune 🤷‍♂️

@heathhenley heathhenley reopened this Nov 21, 2024
@chshersh
Copy link
Owner

I don't have formatting / linting set up locally, probably should for the future anyway so I'll look at getting that set up and fixing the format so that will pass CI

Don't worry about that for now! Once I do #4, it should be trivial to install all required tooling with one command.

I'm not sure why the opam install should be failing on ci? I only added str in lib/fs/dune 🤷‍♂️

The error is mysterious indeed. I haven't touched this project in 5 months, and software is quite vulnerable to bitrot, unfortunately. I'll try to fix CI in a separate PR, so this PR can be rebased afterwards.

@chshersh
Copy link
Owner

@heathhenley FYI, I haven't forgot about your PR! Even though, I got side-tracked by other projects, like FULLY REWRITING MY WEBSITE and also writing an article on category theory.

I attempted to fix the CI for this project in:

But looks like it still doesn't work, and I feel like I'm blocked by:

@heathhenley
Copy link
Collaborator Author

Thanks for the note!

I think I also bumped into that issue with minttea in a separate project. I was trying to use the latest but couldn't get it set it up properly, I ended up just using the previous version (0.0.2) that's on opam (I was starting from scratch so I didn't matter, just had to follow the 0.0.2 tag's conventions versus the latest). Not sure if you're already using new stuff in this project, but I see >=0.0.2 so maybe pinning it to minttea 0.0.2 and whatever riot that uses solves the build issue here?

You probably saw this but I think this is a similar issue going on: leostera/minttea#58

@chshersh
Copy link
Owner

@heathhenley You're not wrong. I originally bumped into that issue, then I had to figure out pins, and then this new issue.

Well, if you depend on the dev unstable version of a project, you'll get unstable results 😅

I know the maintainer is busy

I do, however, need to use the latest version as I rely on some patches around configuring FPS. I guess, we'll have to wait!

Copy link
Owner

@chshersh chshersh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing stuff, @heathhenley! Apologies for the delay, I got busy with side quests but now I'm fully back to this project.

I did some work on fixing CI issues in #13. It's merged, so you should be able to sync with the latest version in main and it should work now.

The implementation looks good to me, I left only a few minor comments.

@chshersh chshersh added the component: UI Issues related to changing UI label Jan 7, 2025
@heathhenley heathhenley force-pushed the hh_check_for_bin_files branch from 58de018 to 4fd57d7 Compare January 7, 2025 22:40
@heathhenley
Copy link
Collaborator Author

Just pushed an update, lmk what you think!

Copy link
Owner

@chshersh chshersh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 🏆

I'll merge once CI passes.

@chshersh chshersh merged commit 999ba2b into chshersh:main Jan 8, 2025
3 checks passed
@heathhenley heathhenley deleted the hh_check_for_bin_files branch January 8, 2025 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: UI Issues related to changing UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants